package com.rpc.test;


import com.rpc.annotation.ServiceScan;
import com.rpc.serializer.HessianSerializer;
import com.rpc.serializer.ProtobufSerializer;
import com.rpc.test.service.HelloService;
import com.rpc.test.service.HelloServiceImpl;
import com.rpc.transport.netty.server.NettyServer;

/**
 * @Author: Xiaohei
 * @CreateTime: 2021/11/13 12:15
 */
@ServiceScan("com.rpc")
public class NettyTestServer {

    public static void main(String[] args) {
        NettyServer server = new NettyServer("127.0.0.1", 9999);
        server.setSerializer(new ProtobufSerializer());
        server.start();
    }
}
